package com.dji.sample.wayline.model.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import com.dji.sample.common.util.kmlModel.TravelRecordRequest;
import com.dji.sample.wayline.model.dto.UploadKmlDto;
import lombok.Data;


import java.util.Date;
import java.util.List;

/**
 * <p>
 * 
 * </p>
 *
 * @author yjt
 * @since 2022-10-27
 */
@TableName("wayline_info")
@Data
public class WaylineInfoEntity extends Model<WaylineInfoEntity> {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    private String name;
    /**
     * MD5
     */
    private String sign;

    private String objectKey;

    private String userName;

    private Long createTime;

    /**
     * required, can't modify.
     */
    private Long updateTime;

    private Long orgId;

    private String orgCode;

    private String deviceNos;

    private String takeOffSecurityHeight;

    private String ellipsoidHeight;

    private String speed;

    private Integer status;

    private String sysRmk;

    private Date startTime;

    private Date endTime;

    private String uniKey;

    @TableField(exist = false)
    public List<TravelRecordRequest> originCoordinate;

    @TableField(value = "origin_coordinate")
    public String coordinate;

    @TableField(exist = false)
    private String[] deviceNo;

    @TableField(exist = false)
    private List<WaylineFilePositionEntity> positions;

    private Integer type;

    @TableField(exist = false)
    private String typeName;

    private String payloadParam;

    private String droneInfo;

    private String payloadInfo;

}
